package com.yulinlin.admin.modules.im.domain;

import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.admin.modules.im.domain.enums.ImMessageReceiptEnums;
import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("消息回执")
@JoinTable("im_message_receipt")
public class ImMessageReceiptEntity extends SuperEntity<ImMessageReceiptEntity>  {









        @NotEmpty(message = "必填")
        @ApiModelProperty("消息id")
        @JoinWhere
        @JoinField
        private String imMessageId;





        @NotEmpty(message = "必填")
        @ApiModelProperty("会话id")
        @JoinWhere
        @JoinField
        private String imSessionId;




        @NotEmpty(message = "必填")
        @ApiModelProperty("状态 未读 已读")
        @JoinWhere
        @JoinField
        private ImMessageReceiptEnums.status status;





        @NotEmpty(message = "必填")
        @ApiModelProperty("用户id")
        @JoinWhere
        @JoinField
        private String userId;







}
